package com.mazaiting.uac.domain.vo;

import com.mazaiting.common.core.constant.ExMessageConst;
import com.mazaiting.common.core.constant.PatternConst;
import com.mazaiting.sms.enums.SmsTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 短信 VO
 *
 * @author mazaiting
 * @create_time 2022/9/30 17:06
 */
@Data
public class SmsVO {

    /**
     * 手机号
     */
    @NotBlank(message = ExMessageConst.ERROR_PHONE_EMPTY)
    @Pattern(regexp = PatternConst.PHONE, message = ExMessageConst.ERROR_PHONE_FORMAT)
    private String phone;
    /**
     * 平台编码
     */
    @NotNull(message = ExMessageConst.ERROR_PLATFORM_EMPTY)
    private Integer platform;
    /**
     * 类型
     */
    private SmsTypeEnum type;
}
